import request from '@/utils/request'
import data from '../../views/system/dict/data.vue'

// 查询补充记录列表
export function listStoInc(query) {
  return request({
    url: '/stock/increase/list',
    method: 'get',
    params: query
  })
}

// 查询补充记录详细
export function getStoInc(increaseId) {
  return request({
    url: '/stock/increase/' + increaseId,
    method: 'get'
  })
}

// 新增补充记录
export function addStoInc(data) {
  return request({
    url: '/stock/increase',
    method: 'post',
    data: data
  })
}

// 修改补充记录
export function updateStoInc(data) {
  return request({
    url: '/stock/increase',
    method: 'put',
    data: data
  })
}

// 删除补充记录
export function delStoInc(increaseId) {
  return request({
    url: '/stock/increase/' + increaseId,
    method: 'delete'
  })
}

// 确认补充记录
export function confirmStoInc(data) {
  return request({
    url: '/stock/increase/approve',
    method: 'post',
    data: data
  })
}

